﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>部门管理</title>
<!-- 整体样式 -->
<link href="../jquery-easyui-1.5.2/themes/default/easyui.css"
	rel="stylesheet" />
<!-- 图标格式 -->
<link href="../jquery-easyui-1.5.2/themes/icon.css" rel="stylesheet" />
<!-- 颜色样式 -->
<link href="../jquery-easyui-1.5.2/themes/color.css" rel="stylesheet" />
<script src="../jquery-easyui-1.5.2/jquery.min.js"></script>
<script src="../jquery-easyui-1.5.2/jquery.easyui.min.js"></script>
<script src="../jquery-easyui-1.5.2/locale/easyui-lang-zh_CN.js"></script>

<script type="text/javascript" src="js/department.js"></script>
<style type="text/css">
</style>
</head>
<body>

	<div id="tb">
		<input class="easyui-textbox" data-options="prompt:'请输入公司名称....'"
			style="width:14%;height:28px" id="s_name"> <a href="#"
			class="easyui-linkbutton" iconCls="icon-search" onclick="doSearch()">查询</a>

		<a id="add" href="#" class="easyui-linkbutton" iconCls="icon-add"
			plain="true" onclick="addDepartment()">新增</a> <select id="state1"
			class="easyui-combobox" name="state1" style="width:5%;height:28px"
			panelHeight="50" editable="false">
			<option value="0">启用</option>
			<option value="1">禁用</option>
		</select>
	</div>
	<div id="fw">

		<div id="w1" class="easyui-window" title="新增部门信息"
			data-options="cls:'c1',collapsible:false,minimizable:false,maximizable:false,modal:true,closed:true,resizable:false"
			style="width:380px;height:405px;padding:5px">

			<div class="easyui-layout" data-options="fit:true">

				<div data-options="region:'center'" style="padding:10px;">
					<form id="userfrom">
						<input type="hidden" name="id" id="id" />
						<table cellpadding="5">

							<tr>
								<td class="td1">部门名称：</td>
								<td><input class="easyui-textbox"
									data-options="prompt:'请输入单位名....'"
									style="width:220px;height:28px" name="name" id="name"></td>
							</tr>
							<tr>
								<td class="td1">部门电话：</td>
								<td><input class="easyui-textbox"
									data-options="prompt:'请输入单位名....'"
									style="width:220px;height:28px" name="phone" id="phone"></td>
							</tr>
							<tr>
								<td class="td1">部门联系人：</td>
								<td><input class="easyui-textbox"
									data-options="prompt:'请输入单位名....'"
									style="width:220px;height:28px" name="principal" id="principal"></td>
							</tr>
							<tr>
								<td class="td1">部门状态：</td>
								<td><select class="easyui-combobox" editable="false"
									id="state" style="width:220px;height:28px" name="state" 
									editable="false" >
										<option value="0">启用</option>
										<option value="1">禁用</option>
								</select></td>
							</tr>
								<input type="hidden" name="staffnumber" id="staffnumber"/>
							<tr>
								<td class="td1">备注信息：</td>
								<td><input class="easyui-textbox"
									data-options="multiline:true,prompt:'请输入备注....'"
									style="width:220px;height:60px" id="remarks" name="remarks"></td>
							</tr>
							<tr>
								<td>&nbsp;</td>
								<td id="message" style="font-size: 12px; color: red;"></td>
							</tr>

						</table>
					</form>
				</div>
				<div data-options="region:'south',border:false"
					style="text-align:right;padding:5px 5px 5px;">
					<a href="#" class="easyui-linkbutton" iconCls="icon-ok"
						onclick="commitUpdate()" id="change">确认修改</a> <a href="#"
						class="easyui-linkbutton" iconCls="icon-ok"
						onclick="submitInsert()" id="insert">确认新增</a>
				</div>
			</div>
		</div>
	</div>



	</div>
	<table id="datatable">
	</table>
</body>
</html>
